function lefPprice() {
    var price = $("#lefPprice").val();
    var reg_password = /^\d+(\.\d+)?$/;
    var flag = reg_password.test(price);
    if(flag){
        $("#lefPprice").css("border","");
    }else{
        $("#lefPprice").css("border","1px solid red");
        alert("输参数有误")
    }
    return flag;
}

function rightPrice() {
    var price = $("#rightPrice").val();
    var reg_password = /^\d+(\.\d+)?$/;
    var flag = reg_password.test(price);
    if(flag){
        $("#rightPrice").css("border","");
    }else{
        $("#rightPrice").css("border","1px solid red");
        alert("输参数有误")

    }
    return flag;
}
function price() {
    var rightPrice = $("#rightPrice").val();
    var lefPprice = $("#lefPprice").val();
    if (Number(lefPprice) >= Number(rightPrice)) {
        $("#rightPrice").val("");
        $("#lefPprice").val("");
        alert("输参数有误")
    }
}